package com.ruoyi.profession.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.profession.mapper.EducationTrainingMapper;
import com.ruoyi.profession.domain.EducationTraining;
import com.ruoyi.profession.service.IEducationTrainingService;

/**
 * 进修信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-31
 */
@Service
public class EducationTrainingServiceImpl implements IEducationTrainingService 
{
    @Autowired
    private EducationTrainingMapper educationTrainingMapper;

    /**
     * 查询进修信息
     * 
     * @param id 进修信息主键
     * @return 进修信息
     */
    @Override
    public EducationTraining selectEducationTrainingById(Long id)
    {
        return educationTrainingMapper.selectEducationTrainingById(id);
    }

    /**
     * 查询进修信息列表
     * 
     * @param educationTraining 进修信息
     * @return 进修信息
     */
    @Override
    public List<EducationTraining> selectEducationTrainingList(EducationTraining educationTraining)
    {
        return educationTrainingMapper.selectEducationTrainingList(educationTraining);
    }

    /**
     * 新增进修信息
     * 
     * @param educationTraining 进修信息
     * @return 结果
     */
    @Override
    public int insertEducationTraining(EducationTraining educationTraining)
    {
        return educationTrainingMapper.insertEducationTraining(educationTraining);
    }

    /**
     * 修改进修信息
     * 
     * @param educationTraining 进修信息
     * @return 结果
     */
    @Override
    public int updateEducationTraining(EducationTraining educationTraining)
    {
        return educationTrainingMapper.updateEducationTraining(educationTraining);
    }

    /**
     * 批量删除进修信息
     * 
     * @param ids 需要删除的进修信息主键
     * @return 结果
     */
    @Override
    public int deleteEducationTrainingByIds(Long[] ids)
    {
        return educationTrainingMapper.deleteEducationTrainingByIds(ids);
    }

    /**
     * 删除进修信息信息
     * 
     * @param id 进修信息主键
     * @return 结果
     */
    @Override
    public int deleteEducationTrainingById(Long id)
    {
        return educationTrainingMapper.deleteEducationTrainingById(id);
    }
}
